Optimal. Leaf size=29 \[ -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {65, 214}
\begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {x} (-a+b x)} \, dx &=2 \text {Subst}\left (\int \frac {1}{-a+b x^2} \, dx,x,\sqrt {x}\right )\\ &=-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 29, normalized size = 1.00 \begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 19, normalized size = 0.66
method | result | size |
derivativedivides | \(-\frac {2 \arctanh \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{\sqrt {a b}}\) | \(19\) |
default | \(-\frac {2 \arctanh \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{\sqrt {a b}}\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 34, normalized size = 1.17 \begin {gather*} \frac {\log \left (\frac {b \sqrt {x} - \sqrt {a b}}{b \sqrt {x} + \sqrt {a b}}\right )}{\sqrt {a b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.47, size = 67, normalized size = 2.31 \begin {gather*} \left [\frac {\sqrt {a b} \log \left (\frac {b x + a - 2 \, \sqrt {a b} \sqrt {x}}{b x - a}\right )}{a b}, \frac {2 \, \sqrt {-a b} \arctan \left (\frac {\sqrt {-a b}}{b \sqrt {x}}\right )}{a b}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 68 vs.
\(2 (29) = 58\).
time = 0.42, size = 68, normalized size = 2.34 \begin {gather*} \begin {cases} \frac {\tilde {\infty }}{\sqrt {x}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {2 \sqrt {x}}{a} & \text {for}\: b = 0 \\- \frac {2}{b \sqrt {x}} & \text {for}\: a = 0 \\\frac {\log {\left (\sqrt {x} - \sqrt {\frac {a}{b}} \right )}}{b \sqrt {\frac {a}{b}}} - \frac {\log {\left (\sqrt {x} + \sqrt {\frac {a}{b}} \right )}}{b \sqrt {\frac {a}{b}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.61, size = 20, normalized size = 0.69 \begin {gather*} \frac {2 \, \arctan \left (\frac {b \sqrt {x}}{\sqrt {-a b}}\right )}{\sqrt {-a b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 19, normalized size = 0.66 \begin {gather*} -\frac {2\,\mathrm {atanh}\left (\frac {\sqrt {b}\,\sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________